#ifndef _TEXTURE_MANAGER_H_
#define _TEXTURE_MANAGER_H_

#include"video/ResManager.h"
#include "video/Texture.h"

namespace KEngine
{
	class Device;
	class TextureManager : public ResManager<Texture>
	{
	public:
		TextureManager();

		~TextureManager();
		Texture* create(std::string& name);
		void releaseByName(std::string& name);
		
		void setDevice(Device* device){_device = device;}
		Device* getDevice()
		{
			return _device;
		}
	private:
		Device* _device;
	};

};

#endif